package com.lkd.mapper;

import com.lkd.dto.VmDto;
import com.lkd.entity.VmType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VmTypeMapper {

    @Select("select * from tb_vm_type where type_id = #{vmType}")
    VmType findByTypeId(Integer vmType);

    List<VmType> findByPage(VmDto dto);

    Boolean addVmType(VmType vmType);

    Boolean updateVmType(VmType vmType);

    Boolean deleteVmType(Integer typeId);
}

